home *** CD-ROM | disk | FTP | other *** search
/ Mac Format 1995 June / MacFormat 25.iso / Shareware City / Developers / OutOfPhase1.1 Source / OutOfPhase Folder / ScoreEffectWindow.h < prev    next >
Text File  |  1995-01-05  |  3KB  |  82 lines

  1. /* ScoreEffectWindow.h */
  2.  
  3. #ifndef Included_ScoreEffectWindow_h
  4. #define Included_ScoreEffectWindow_h
  5.  
  6. /* ScoreEffectWindow module depends on */
  7. /* MiscInfo.h */
  8. /* Audit */
  9. /* Debug */
  10. /* Definitions */
  11. /* Screen */
  12. /* TextEdit */
  13. /* EventLoop */
  14. /* Menus */
  15. /* MainWindowStuff */
  16. /* WindowDispatcher */
  17. /* TextEdit */
  18. /* Memory */
  19. /* GlobalWindowMenuList */
  20. /* Main */
  21. /* GrowIcon */
  22. /* FindDialog */
  23. /* DataMunging */
  24. /* EffectSpecList */
  25.  
  26. #include "Screen.h"
  27. #include "EventLoop.h"
  28. #include "Menus.h"
  29.  
  30. struct ScoreEffectWindowRec;
  31. typedef struct ScoreEffectWindowRec ScoreEffectWindowRec;
  32.  
  33. /* forward declarations */
  34. struct CodeCenterRec;
  35. struct MainWindowRec;
  36.  
  37. /* create a new score effect window. */
  38. ScoreEffectWindowRec*    NewScoreEffectWindow(struct MainWindowRec* MainWindow,
  39.                                                 char* Text);
  40.  
  41. /* dispose of a score effect window. */
  42. void                                    DisposeScoreEffectWindow(ScoreEffectWindowRec* Window);
  43.  
  44. /* event handling routines for the score effect window */
  45. void                                    ScoreEffectWindowDoIdle(ScoreEffectWindowRec* Window,
  46.                                                 MyBoolean CheckCursorFlag, OrdType XLoc, OrdType YLoc,
  47.                                                 ModifierFlags Modifiers);
  48. void                                    ScoreEffectWindowBecomeActive(ScoreEffectWindowRec* Window);
  49. void                                    ScoreEffectWindowBecomeInactive(ScoreEffectWindowRec* Window);
  50. void                                    ScoreEffectWindowJustResized(ScoreEffectWindowRec* Window);
  51. void                                    ScoreEffectWindowDoMouseDown(OrdType XLoc, OrdType YLoc,
  52.                                                 ModifierFlags Modifiers, ScoreEffectWindowRec* Window);
  53. void                                    ScoreEffectWindowDoKeyDown(unsigned char KeyCode,
  54.                                                 ModifierFlags Modifiers, ScoreEffectWindowRec* Window);
  55. void                                    ScoreEffectWindowClose(ScoreEffectWindowRec* Window);
  56. void                                    ScoreEffectWindowUpdator(ScoreEffectWindowRec* Window);
  57. void                                    ScoreEffectWindowMenuSetup(ScoreEffectWindowRec* Window);
  58. void                                    ScoreEffectWindowDoMenuCommand(ScoreEffectWindowRec* Window,
  59.                                                 MenuItemType* MenuItem);
  60.  
  61. /* get the string from the editor */
  62. char*                                    ScoreEffectWindowGetText(ScoreEffectWindowRec* Window);
  63.  
  64. /* make editor window come to top */
  65. void                                    ScoreEffectWindowBringToTop(ScoreEffectWindowRec* Window);
  66.  
  67. /* utility routine to hilite a text line on which a compile error has occurred */
  68. void                                    ScoreEffectWindowHiliteLine(ScoreEffectWindowRec* Window,
  69.                                                 long ErrorLine);
  70.  
  71. /* the name of the document has changed, so change the name of the window */
  72. void                                    ScoreEffectWindowGlobalNameChange(ScoreEffectWindowRec* Window,
  73.                                                 char* NewFilename);
  74.  
  75. /* refresh the titlebar of the window */
  76. void                                    ScoreEffectWindowResetTitlebar(ScoreEffectWindowRec* Window);
  77.  
  78. /* force the window to write back to the object any data that has changed */
  79. MyBoolean                            ScoreEffectWindowWritebackModifiedData(ScoreEffectWindowRec* Window);
  80.  
  81. #endif
  82.